<div id="languages">
    <?php if( MyConstants::isMultiLng() ): /* If site is multi language */ ?>
        <?php foreach( MyConstants::getLngList() as $key => $lng ): ?>
            <?php if( $sf_user->getCulture() == $key ): ?>
                <div class="lang_selected">
                <?php echo link_to(
                                __($lng)
                                , 'system/setlng?lng=' . $key
                            ) ?>
                </div>
            <?php else: ?>
                <div class="lang">
                <?php echo link_to(
                                __($lng)
                                , 'system/setlng?lng=' . $key
                            ) ?></div>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>
</div>